package com.jerei.crm.service;

import com.jerei.crm.entity.Contract;
import com.jerei.crm.entity.Customer;

import java.util.List;

public interface ICustomerService {

    void addCus(Customer customer);

    void addContract(Contract contract);

    List<Customer> findLike(Integer uid,String name,String tel,String intention ,String username);
    List<Customer> findLikeMyCus(Integer uid,String name,String tel,String intention ,String username);
    List<Customer> findLikeAll(Integer uid,String name,String tel,String intention ,String username);



    List<Customer> findLikePublic(String name,String tel,String intention);

    List<Customer> findAllByUid(Integer uid,Integer index);

    List<Customer> findAll(String username,Integer index);

    Integer countAll();

    Integer countPublic();

    Integer countCus(Integer uid);

    List<Customer> findAllByPublic(Integer index);

    List<Customer> findAllByStatus(Integer uid,Integer index);

    Integer countByStatus(Integer uid);


    List<Contract> findContractByCid(Integer cid);

    List<Customer> findCustomerByArray(Integer[] arr);

    void updateByArrayCid(Integer[] arr,Integer uid);

    //获取公共客户
    void updatePublic(Integer uid,Integer cid);

    //设置为公共客户
    void updateAbaPublic(Integer cid);

    void deleteByCid(Integer cid);

}
